﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Styx.CommonBot;
using Styx.CommonBot.Profiles;
using Styx.Common;
using System.Windows.Forms;

namespace BattleBuddyplug
{  // BoostPetSlot1Ringer
    public partial class configForm
    {
        public void BoostPetSlot1RingerInit()
        {
            //Logging.Write("init simple level all in team");
            BattleBuddy._QuickSettingsNames.Add("Boost pet in slot 1 " + System.Environment.NewLine + "(aka ringer mode)");
            BattleBuddy._QuickSettingsDescriptions.Add("Enables GatherBuddy2, PetArea and manages the settings."+ System.Environment.NewLine + "You might wanna change the PetArea profiles in PetArea Settings");
            BattleBuddy._QuickSettingsFunctions.Add("BoostPetSlot1RingerExecute");
        }

        public void BoostPetSlot1RingerExecute()
        {
            // ProfileManager.LoadEmpty();
            // EnablePlugin("PetArea");
            SetBotBase("gather");

            string addtodefault = "SWAPOUT EnemyPetLevel ISGREATERTHAN MyPetLevel + 3 $ Health(THISPET) ISLESSTHAN 70 $ MyPetsAlive ISGREATERTHAN 1";
            var item = lstDefaultLogic.FindString(addtodefault);
            if (item == ListBox.NoMatches)
            {
                lstDefaultLogic.Items.Add(addtodefault);
            }
            SaveDefault();

            BattleBuddy._MySettings.AboveLevel = 8;
            BattleBuddy._MySettings.AdFactor = 2;
            BattleBuddy._MySettings.BelowLevel = 3;
            BattleBuddy._MySettings.DisFactor = 2;
            BattleBuddy._MySettings.Distance = 300;
            BattleBuddy._MySettings.DoPreCombatSwapping = false;
            BattleBuddy._MySettings.DoPVP = false;
            BattleBuddy._MySettings.ForfeitIfNotInteresting = false;
            BattleBuddy._MySettings.GetRarity = 3;
            BattleBuddy._MySettings.HPFactor = 10;
            BattleBuddy._MySettings.LevelFactor = -20;
            BattleBuddy._MySettings.MinPetsAlive = 1;
            BattleBuddy._MySettings.PVPMaxTime = 1;
            BattleBuddy._MySettings.PVPMinTime = 0;
            BattleBuddy._MySettings.UseBandagesToHeal = 0;

            BattleBuddy._MySettings.UseBlackList = true;
            BattleBuddy._MySettings.UseHealSkill = 1;
            BattleBuddy._MySettings.UseRatingSystem = false;
            BattleBuddy._MySettings.UseWhiteList = false;
            BattleBuddy._MySettings.PetOrder = "1,2,3";
            BattleBuddy._MySettings.PrintSettings();
            BBLog("Set for Ringer mode");
            closeForm();
        }


    }
}
